
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>《C语言程序设计》在线考试系统 - 系统设置</title>
<meta name="Copyright" content="Douco Design." />
<link href="{$smarty.const.Admin_URL}css/public.css" rel="stylesheet"
	type="text/css">
<script type="text/javascript"
	src="{$smarty.const.Admin_URL}js/jquery.min.js"></script>
<script type="text/javascript"
	src="{$smarty.const.Admin_URL}js/global.js"></script>
<script type="text/javascript"
	src="{$smarty.const.Admin_URL}js/jquery.tab.js"></script>
	<script charset="utf-8" src="/Test/Tool/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="/Test/Tool/kindeditor/lang/zh-CN.js"></script>
</head>
{include file="../Index/top.html"}
		<div id="dcMain">
			<!-- 当前位置 -->
			<div id="urHere">
				题库首页<b>></b><strong>{$smarty.get.type_name}修改</strong>
			</div>
			<div class="mainBox"
				style="height: auto !important; height: 550px; min-height: 550px;">
				<h3><a href="{$smarty.const.__CONTROLLER__}/exam/type/{$smarty.get.type}" class="actionBtn">返回</a>{$smarty.get.type_name}修改</h3>
				<script type="text/javascript">
     
     $(function(){ $(".idTabs").idTabs(); });
     
    </script>
				<div class="idTabs">
					{if $smarty.get.type=='1' || $smarty.get.type=='2'}
					<div class="items">
						<form action="{$smarty.const.__SELF__}" method="post"
							enctype="multipart/form-data">
							<div id="main">
								<table width="100%" border="0" cellpadding="8" cellspacing="0"
									class="tableBasic">
									<tr>
										<th width="131">名称</th>
										<th>内容</th>
									</tr>
									<tr>
										<td align="right">试题名称</td>
										<td><textarea id="editor_id" name="content" style="width:700px;height:300px;">
										{include file=$upd.content}
										</textarea>
									</tr>
									<tr>
										<td align="right">A：</td>
										<td><input type="text" name="select_a"
											value="{$upd.select_a}" size="80" placeholder="请输入A选项内容" class="inpMain" /></td>
									</tr>
									<tr>
										<td align="right">B：</td>
										<td><input type="text" name="select_b"
											value="{$upd.select_b}" size="80" placeholder="请输入B选项内容" class="inpMain" /></td>
									</tr>
									<tr>
										<td align="right">C：</td>
										<td><input type="text" name="select_c"
											value="{$upd.select_c}" size="80" placeholder="请输入C选项内容" class="inpMain" /></td>
									</tr>
									<tr>
										<td align="right">D：</td>
										<td><input type="text" name="select_d"
											value="{$upd.select_d}" size="80" placeholder="请输入D选项内容" class="inpMain" /></td>
									</tr>
									{if $upd.type==1}
									<tr>
										<td align="right">是否单选</td>
										<td><label for="site_closed_1"> <input type="radio"
												name="type" id="site_closed_1" value="1" checked="checked"> 是
										</label>
										<label for="site_closed_2"> <input
												type="radio" name="type" id="site_closed_2" value="2"> 否
										</label></td>
									</tr>
									{else}
									<tr>
										<td align="right">是否单选</td>
										<td><label for="site_closed_1"> <input type="radio"
												name="type" id="site_closed_1" value="1"> 是
										</label>
										<label for="site_closed_2"> <input
												type="radio" name="type" id="site_closed_2" value="2" checked="checked"> 否
										</label></td>
									</tr>
									{/if}
									<tr>
										<td align="right">答案：</td>
										<td><input type="text" name="answer"
											value="{include file=$upd.answer}" size="80" placeholder="请输入答案，多选答案请用逗号隔开，比如：A,B,C,D" class="inpMain" /></td>
									</tr>
									<tr>
									<td width="131"></td>
									<td>
										<input class="btn" type="submit" value="提交" />
									</td>
									</tr>
								</table>
							</div>
						</form>
							{elseif $smarty.get.type=='3' || $smarty.get.type=='4'}
							<div id="display">
							<form action="{$smarty.const.__SELF__}" method="post"
							enctype="multipart/form-data">
								<table width="100%" border="0" cellpadding="8" cellspacing="0"
									class="tableBasic">
									<tr>
										<th width="131">名称</th>
										<th>内容</th>
									</tr>
									<tr>
										<td align="right">试题名称</td>
										<td><textarea id="editor_ids" name="content" style="width:700px;height:300px;">
										{include file=$upd.content}
										</textarea>
									</tr>
									{if $upd.type==3}
									<tr>
										<td align="right">试题名称</td>
										<td><label for="site_closed_3"> 概念填空题<input type="radio"
												name="type" id="site_closed_3" value="3" checked="checked">
										</label>
										<label for="site_closed_4"> 程序填空题<input
												type="radio" name="type" id="site_closed_4" value="4">
										</label></td>
									</tr>
									{else}
									<tr>
										<td align="right">试题名称</td>
										<td><label for="site_closed_3"> 概念填空题<input type="radio"
												name="type" id="site_closed_3" value="3">
										</label>
										<label for="site_closed_4"> 程序填空题<input
												type="radio" name="type" id="site_closed_4" value="4" checked="checked">
										</label></td>
									</tr>
									{/if}
									<tr>
										<td align="right">答案：</td>
										<td><input type="text" name="answer"
											value="{include file=$upd.answer}" size="80" placeholder="请输入要填写内容，如有多个答案，请用逗号隔开" class="inpMain" /></td>
									</tr>
									<tr>
									<td width="131"></td>
									<td>
										<input class="btn" type="submit" value="提交" />
									</td>
									</tr>
								</table>
							</div>
						</form>
							{else}
							<div id="defined">
							<form action="{$smarty.const.__SELF__}" method="post"
							enctype="multipart/form-data">
								<table width="100%" border="0" cellpadding="8" cellspacing="0"
									class="tableBasic">
									<tr>
										<th width="131">名称</th>
										<th>内容</th>
									</tr>
									<tr>
										<td align="right">试题名称</td>
										<td><textarea id="editor_id1" name="content" style="width:700px;height:300px;">
										{include file=$upd.content}
										</textarea>
									</tr>
									{if $upd.type==5}
									<tr>
										<td align="right">试题名称</td>
										<td><label for="site_closed_5"> 程序修改题<input type="radio"
												name="type" id="site_closed_5" value="5" checked="checked">
										</label>
										<label for="site_closed_6"> 程序编写题<input
												type="radio" name="type" id="site_closed_6" value="6">
										</label></td>
									</tr>
									{else}
									<tr>
										<td align="right">试题名称</td>
										<td><label for="site_closed_5"> 程序修改题<input type="radio"
												name="type" id="site_closed_5" value="5">
										</label>
										<label for="site_closed_6"> 程序编写题<input
												type="radio" name="type" id="site_closed_6" value="6" checked="checked">
										</label></td>
									</tr>
									{/if}
									 <tr>
							          <td align="right">答案</td>
							          <td>
							                      <textarea name="answer" cols="83" rows="8" class="textArea" />{include file=$upd.answer}</textarea>
							                                </td>
							         </tr>
									<tr>
									<td width="131"></td>
									<td>
										<input class="btn" type="submit" value="提交" />
									</td>
									</tr>
								</table>
							</div>
						</form>
							{/if}
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
		<div id="dcFooter">
			<div id="footer">
				<div class="line"></div>
				<ul>《C语言程序设计》在线考试系统，版权所有
				</ul>
			</div>
		</div>
		<!-- dcFooter 结束 -->
		<div class="clear"></div>
	</div>
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
</script>
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_ids');
        });
</script>
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id1');
        });
</script>
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id2');
        });
</script>
</body>
</html>